﻿@{
    ViewBag.Title = "Detail";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
@model TaoPortal.Entity.PagedList<TaoPortal.DataAccess.SysMsg>
<div class="panel" style="height: 300px; margin-bottom: 5px; overflow: auto">
    <div class="panel-header clearfix">
        <h3 class="pull-left">消息列表</h3>
    </div>
    <div class="panel-body">
        @foreach (var item in Model)
        {
            if (item.Sender != ViewBag.UserName)
            { 
            <div class="letter-text">@item.Sender @item.CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss")</div>
            <div class="row-fluid">
                <div class="span20">
                    <div class="tips tips-small tips-info tips-no-icon">
                        <div class="tips-content">@Html.Raw(item.MsgBody)</div>
                    </div>
                </div>
            </div>
            }
            else
            {
            <div class="letter-text" style="text-align: right">@item.Sender @item.CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss")</div>
            <div class="row-fluid">
                <div class="span4">
                    &nbsp;
                </div>
                <div class="span20">
                    <div class="tips tips-small tips-notice tips-no-icon">
                        <div class="tips-content">@Html.Raw(item.MsgBody)</div>
                    </div>
                </div>
            </div>
            }
        }
    </div>
</div>

<div class="panel">
    <div class="panel-header clearfix">
        <h3 class="pull-left">消息回复</h3>
    </div>
    <div class="panel-body">
        @using (Html.BeginForm())
        {    
            <div class="panel" style="overflow: hidden; padding-left: 5px; padding-right: 5px;">
                <textarea style="width: 100%; border: none; padding-left: 25px; margin-left: -25px; box-shadow: none;"></textarea>
            </div>
            <div style="text-align: right; margin-top: 5px;">
                <button class="button button-primary" type="submit">回复</button>
                <button class="button" type="reset">关闭</button>
            </div>
        }
    </div>
</div>



